package com.hilinos.gb.gb28181.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "com.hilinos.gb.gb28181")
public class SipConfig {

    /**
     * 是否需要认证
     */
    private boolean needAuth = false;

    /**
     * sip ip
     */
    private String sipIp;

    /**
     * sip端口
     */
    private int sipPort = 5060;

    private String sipId;

    private String sipDomain;

    private String sipPassword;

    /**
     * 心跳超时时间 单位秒
     * 默认300秒
     */
    private long sipHeartbeatTimeout = 300;

    private String mediaIp;
    Integer mediaPort;
    private String outPlayUrl;

}
